<!--

    Copyright (C) 2015 The Gravitee team (http://gravitee.io)

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<!doctype html>
<html class="mat">
  <head>
    <meta charset="utf-8" />
    <base href="/" />
    <title ng-bind="consoleTitle"></title>
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width" />
    <link id="favicon" rel="icon" href="favicon.ico" />
    <style type="text/css">
      [ng\:cloak],
      [ng-cloak],
      [data-ng-cloak],
      [x-ng-cloak],
      .ng-cloak,
      .x-ng-cloak,
      .ng-hide:not(.ng-hide-animate) {
        display: none !important;
      }

      .gravitee-splash-screen {
        background-color: #fdfdfd;
        bottom: 0;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 99999;
      }

      @keyframes gioLoader {
        to {
          transform: rotate(360deg);
        }
      }
      .gravitee-loader {
        position: relative;
        top: 40%;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
      }
      .gravitee-loader svg {
        animation: gioLoader 2s infinite linear;
      }

      #gravitee-error {
        color: red;
        font-size: 20px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 999999;
      }
    </style>
    <script language="JavaScript">
      /**
       * detect IE
       * https://codepen.io/gapcode/pen/vEJNZN
       *
       * returns version of IE or false, if browser is not Internet Explorer
       */
      function detectIE() {
        let ua = window.navigator.userAgent;
        let msie = ua.indexOf('MSIE ');
        if (msie > 0) {
          // IE 10 or older => return version number
          return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
        }
        let trident = ua.indexOf('Trident/');
        if (trident > 0) {
          // IE 11 => return version number
          let rv = ua.indexOf('rv:');
          return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
        }
        let edge = ua.indexOf('Edge/');
        if (edge > 0) {
          // Edge (IE 12+) => return version number
          return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);
        }
        // other browser
        return false;
      }

      window.onload = function () {
        let isIE = detectIE();
        if (isIE !== false && isIE < 12) {
          document.getElementById('BrowserNotSupportedBanner').style.display = '';
        }
      };
    </script>

    <script type="module">
      // Load Asciidoctor by default to avoid some es6 error
      // Try to remove it when ui-particle use angular 14+ and asciidoctor 3.x
      import Asciidoctor from './assets/asciidoctor/asciidoctor.js';
      window.Asciidoctor = Asciidoctor;
    </script>
  </head>

  <body layout="column" class="mat mat-typography mat-app-background">
    <p id="BrowserNotSupportedBanner" class="browsehappy" style="display: none">
      You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
      experience.
    </p>

    <app-root>
      <div id="gravitee-error"></div>
      <div id="loader" ng-show="displayLoader" class="gravitee-splash-screen">
        <div class="gravitee-loader">
          <svg fill="none" viewBox="0 0 24 24" fit="" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" focusable="false">
            <g>
              <path
                fill="currentColor"
                d="M12 1a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V2a1 1 0 0 1 1-1Zm0 16a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1ZM4.223 4.223a1 1 0 0 1 1.414 0l2.83 2.83a1 1 0 1 1-1.414 1.414l-2.83-2.83a1 1 0 0 1 0-1.414Zm11.31 11.31a1 1 0 0 1 1.414 0l2.83 2.83a1 1 0 1 1-1.414 1.414l-2.83-2.83a1 1 0 0 1 0-1.414ZM1 12a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1Zm16 0a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2h-4a1 1 0 0 1-1-1Zm-8.533 3.533a1 1 0 0 1 0 1.414l-2.83 2.83a1 1 0 0 1-1.414-1.414l2.83-2.83a1 1 0 0 1 1.414 0Zm11.31-11.31a1 1 0 0 1 0 1.414l-2.83 2.83a1 1 0 1 1-1.414-1.414l2.83-2.83a1 1 0 0 1 1.414 0Z"
              ></path>
            </g>
          </svg>
        </div>
      </div>
    </app-root>
    <script src="webcomponents/webcomponents-loader.js"></script>
  </body>
</html>
